/**
 * 请求后台api函数封装
 */
import {httpPost, httpGet} from "@/utils/httpUtils.js"


/**
 * 登录提交
 */
export const LoginSubmit = (body)=>httpPost("/api/admin/loginCheck", body)

/**
 * 获取顾客信息列表
 */
export const getCustomerList = (body)=>httpPost("/api/customer/queryAllByPage",body)

/**
 * 修改顾客状态
 */
export const freezeCustomer = (body)=>httpPost("/api/customer/freezeCustomer",body)

/**
 * 重置用户密码
 */
export const resetPassWord = (body)=>httpPost("/api/customer/resetPass", body);

/**
 * 查询所有的产品类目
 */
export const getProductClass = () => httpGet("/api/productClass/queryAllProductClass");

/**
 * 修改产品类目
 */
export const updateClass = (body) => httpPost("/api/productClass/updateProductClass", body);

/**
 * 添加产品类目 
 */
export const addClass = (body) => httpPost("/api/productClass/addProductClass", body);

/**
 * 删除产品类目 
 */
export const deleteClass = (body) => httpPost("/api/productClass/deleteProductClass", body);

/**
 * 分页带条件产品类目 
 */
export const queryPageClass = (body) => httpPost("/api/productClass/queryPage", body);

/**
 * 添加产品
 */
export const addProduct = (body) => httpPost("/api/product/addProduct", body);

/**
 * 查询产品，分页带条件查询
 */
export const queryPageProduct = (body) => httpPost("/api/product/queryPage", body);

/**
 * 删除产品
 */
export const deleteProduct = (body) =>httpPost("/api/product/deleteProduct", body);

/**
 * 修改产品信息
 */
export const updateProduct = (body) => httpPost("/api/product/updateProduct", body);

/**
 * 分页查询订单信息
 */
export const queryOrderPage = (body) => httpPost("/api/buyOrder/queryPage", body);

/**
 * 订单发货
 */
export const orderDeliverGoods = (body) => httpPost("/api/buyOrder/deliverGoods", body);